/**
 *  设备相关接口
 * **/

import request from '@/common/request.js'
import {HTTP_REQUEST_URL,http_request_url_java} from '@/config.js' 

const ycj_api={}

// 获取专业项目
ycj_api.projects = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/project/projects',   
	data: data   
}) 



 

// 获取监测普查数据概况
ycj_api.getProjectFkinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkinfo',   
	data: data   
}) 
  
// 获取监理数据概况
ycj_api.getProjectJlinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/jlinfo',   
	data: data   
})



// 删除图片
ycj_api.deletefile = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/project/delete-file',   
	data: data   
})


// 防控数据详情
ycj_api.getfkproDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkdata',   
	data: data   
})

// 定位
ycj_api.setlocus = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/locus',   
	data: data   
})

// 定位
ycj_api.setfklocus = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/locus',   
	data: data   
})






// 更新定位
ycj_api.updateGps = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/update-gps',   
	data: data   
}) 

// 添加监测作业数据
ycj_api.addPcdata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/addpcdata',   
	data: data   
})

// 添加防控作业数据
ycj_api.addFkdata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/addfkdata',   
	data: data   
})

// 添加防控作业点
ycj_api.addUserFkProLocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addUserFkProLocus',   
	data: data    
})
 

// 添加防控点
ycj_api.addMarkers = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/fkpro/addMarkers',   
	data: data   
}) 

// 更新防控城市adcode
ycj_api.adfkcode = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/fkpro/adcode',   
	data: data   
}) 

// 更新定位
ycj_api.addProjectLocus = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/project/locus',   
	data: data   
}) 

// 上传监测数据
ycj_api.addPcproData = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/pcpro/addpcdata',   
	data: data   
}) 

// 更新监测点
ycj_api.pcproUpdateCollectData = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/updateCollectData',   
	data: data  
}) 

// 更新城市编码
ycj_api.addPcproAdcode = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/pcpro/adcode',   
	data: data   
}) 

// 更新监测点
ycj_api.pcproDcArea = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/count-dc-area',   
	data: data  
}) 

// 上传用户监测点
ycj_api.addUserProLocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addUserProLocus',   
	data: data  
}) 






// 药剂管理
ycj_api.getPotionManage = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/potion-manage',   
	data: data   
}) 

// 药剂管理详情
ycj_api.getPotionDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/potion',   
	data: data   
})

// 分配详情
ycj_api.getFpList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/fplist',   
	data: data   
}) 

// 药剂采购
ycj_api.getPotionList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/potion-list',   
	data: data   
}) 

// 获取药剂参数
ycj_api.getPotionSpecs = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/specs',   
	data: data   
})

// 获取全部规格
ycj_api.getAllSpecs = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/all-specs',   
	data: data   
})

// 添加药剂
ycj_api.addPotion = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/add-potion',   
	data: data   
})

// 添加药剂规格
ycj_api.addSpecs = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/add-specs',   
	data: data   
})

// 获取药剂分配详情
ycj_api.getManageInfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/manage-info',   
	data: data   
})

// 药剂采购
ycj_api.getPotionInfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/potion',   
	data: data   
})

// 采购
ycj_api.addDistribute = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/add-distribute',   
	data: data   
})

// 采购
ycj_api.addFkData = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/addfkdata',   
	data: data   
})

// 获取单位
ycj_api.getMembers = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/members',   
	data: data   
})

// 获取单位
ycj_api.addDistribute = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/potion/add-distribute',   
	data: data   
})

// 添加单位
ycj_api.addCompany = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/company/add-company-user',   
	data: data   
})

// 搜索单位
ycj_api.searchCompany = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/search',   
	data: data   
})


// 每日评价
ycj_api.adddata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/adddata',   
	data: data   
})

// 监理评价列表
ycj_api.getJlproList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/datalist',   
	data: data   
})

// 监理评价列表
ycj_api.getJlproDatainfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/datainfo',   
	data: data   
})

// 删除监理评价
ycj_api.getJlproDelete = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/deletedata',   
	data: data   
})





// 获取位置详细信息 
ycj_api.getCityInfo = data => request.vGet({ 
	url: 'https://apis.map.qq.com/ws/geocoder/v1/',   
	data: data   
}) 

 
// 群作业群详情
ycj_api.groupPro = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/pro',   
	data: data   
})

// 个人作业数据
ycj_api.groupWorkerData = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/worker',   
	data: data   
})







// 计算发生面积
ycj_api.updateCollectData = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/commonpro/updateCollectData',   
	data: data   
}) 

// 计算调查面积 
ycj_api.countDcArea = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/commonpro/count-dc-area',   
	data: data   
})

// 更新地区代码
ycj_api.adcode = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/adcode',   
	data: data   
})

// //添加用户轨迹 
ycj_api.addusercommonlocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addusercommonlocus',   
	data: data   
})


 
 
export default ycj_api






